import '@/styles/common.scss'

import {createApp} from 'vue'

import App from './App.vue'
import router from './router'

import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

// 引入懒加载指令插件并且注册
import { lazyPlugin } from '@/directives'
import pinia from "@/stores";
import {componentPlugin} from "@/components";

const app = createApp(App)

pinia.use(piniaPluginPersistedstate)
app.use(pinia)

app.use(router)

app.use(lazyPlugin)

app.use(componentPlugin)

app.mount('#app')
